package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/3/9
 **/
public class PWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("pw.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw = new BufferedWriter(osw);
        PrintWriter pw = new PrintWriter(bw);
        pw.println("好好学习天天向上");
        pw.println("长大搬砖");
        bw.close();
    }
}
